<template>
  <div class="item" data-type="select" v-bind:class="[('w'+obj.property.selfWidth)]">
      <div class="hd" v-bind:class="[('i'+obj.property.titleWidth+'d6')]">
        <label class="tit">{{obj.property.title}}</label>
        <span class="required" v-show="obj.property.required">*</span>
        <span class="block muted">{{obj.property.intro}}</span>
        <v-handle v-bind:handle="obj.handle"></v-handle>
      </div>
      <div class="bd" v-bind:class="[('i'+(obj.property.titleWidth==6?6:6-obj.property.titleWidth)+'d6')]">
        <el-select v-model="obj.value" placeholder="请选择">
          <el-option
            v-for="option in obj.property.options"
            :key="option.label"
            :label="option.label"
            :value="option.label">
          </el-option>
        </el-select>
        <!--<select v-model="obj.value">
           <option v-for="option in obj.property.options" v-if="obj.property.options" :value="option.text">{{ option.text }}</option>
        </select>-->
      </div>
    </div>
</template>

<script>
export default {
  props: ['obj']
}
</script>
